<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset=utf-8>
<title><?php wp_title(); ?> | <?php bloginfo('name'); ?></title>
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" />
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/jquery.js"></script>
<?php wp_head(); ?>
<?php global $themename, $shortname; ?>
<script type="text/javascript">
$(window).load(function() {
	$('#slider').nivoSlider({
		effect:'<?php echo get_option($shortname.'_slide_effect'); ?>',
		animSpeed: <?php echo get_option($shortname.'_anim_speed'); ?>,
		pauseTime: <?php echo get_option($shortname.'_pause_time'); ?>,
		directionNav: <?php if(get_option($shortname.'_direction_nav')): ?>true<?php else: ?>false<?php endif; ?>,
		controlNav: false,
		randomStart: <?php if(get_option($shortname.'_random_start')): ?>true<?php else: ?>false<?php endif; ?>,
	});
});
</script>
<script type="text/javascript" src="//yandex.st/share/share.js" charset="utf-8"></script>
</head>
<body <?php body_class(); ?>>
	<div class="wrapper">
		<header>
			<nav>
<?php if(get_option($shortname.'_display_links') == 'on'): ?>
				<ul>
					<li><a class="home" href="<?php bloginfo('url'); ?>" title="<?php _e('Go to home page'); ?>"><?php bloginfo('name'); ?></a></li>
					<li><a class="message" href="mailto:<?php echo get_option($shortname.'_admin_email'); ?>" title="<?php _e('Send message'); ?>"><?php echo get_option($shortname.'_admin_email'); ?></a></li>
					<li><a class="web" href="#" title="Web">Web</a></li>
				</ul>
<?php endif; ?>
			</nav>
			<div class="logo">
				<a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a>
			</div>
			<div class="google"><?php echo get_option($shortname.'_header_ad'); ?></div>
<?php if(get_option($shortname.'_display_login_buttons') && !is_user_logged_in()): ?>
			<div class="header_registration">
				<a href="<?php bloginfo('url'); ?>/wp-login.php?action=register" title="<?php _e('Register', 'GIFPark'); ?>"><?php _e('Register', 'GIFPark'); ?></a>
				<a href="<?php bloginfo('url'); ?>/wp-login.php" title="<?php _e('Login', 'GIFPark'); ?>"><?php _e('Login', 'GIFPark'); ?></a>
			</div>
<?php endif; ?>
		</header>
		<section class="content">